package com.orcwar.engine.level;

import java.util.ArrayList;
import java.util.List;

import android.graphics.Rect;

public class OWLevelBuilder {

	private static List<OWLevelParameters> params = new ArrayList<OWLevelBuilder.OWLevelParameters>();

	static {
		params.add(new OWLevelParameters(new int[] { 55, 30, 20 }, 20, 20, 1,
				new Rect(4, 2, 16, 8), new Rect(4, 12, 16, 18)));
		params.add(new OWLevelParameters(new int[] { 55, 30, 20 }, 15, 15, 2,
				new Rect(4, 2, 12, 6), new Rect(4, 6, 12, 13)));
	}

	public static OWLevelParameters getLevelParameters(int level) {
		return params.get(level);
	}

	public static class OWLevelParameters {
		private int[] probas;
		private int height;
		private int width;
		private int difficulty;
		private Rect enemyStart;
		private Rect playerStart;

		public OWLevelParameters(int[] probas, int height, int width,
				int difficulty, Rect enemyStart, Rect playerStart) {
			super();
			this.probas = probas;
			this.height = height;
			this.width = width;
			this.difficulty = difficulty;
			this.enemyStart = enemyStart;
			this.playerStart = playerStart;
		}

		public int[] getProbas() {
			return probas;
		}

		public void setProbas(int[] probas) {
			this.probas = probas;
		}

		public int getHeight() {
			return height;
		}

		public void setHeight(int height) {
			this.height = height;
		}

		public int getWidth() {
			return width;
		}

		public void setWidth(int width) {
			this.width = width;
		}

		public int getDifficulty() {
			return difficulty;
		}

		public void setDifficulty(int difficulty) {
			this.difficulty = difficulty;
		}

		public Rect getEnemyStart() {
			return enemyStart;
		}

		public void setEnemyStart(Rect enemyStart) {
			this.enemyStart = enemyStart;
		}

		public Rect getPlayerStart() {
			return playerStart;
		}

		public void setPlayerStart(Rect playerStart) {
			this.playerStart = playerStart;
		}

	}

}
